﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShengChan.aspx.cs" Inherits="syc.Report.ShengChan" %>
<html>
<body>

<script type="text/javascript" language="javascript" src="/common.js"></script>

    <form id="form1" runat="server">
        <div id="wintop" class="wintop">生产报表</div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel">
            报表日期：<asp:TextBox ID="Date1" runat="server" CssClass="intxt1" Width="120px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" />
            至
            <asp:TextBox ID="Date2" runat="server" CssClass="intxt1" Width="120px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date2').value, document.getElementById('Date2'));" />

            报表类型：<asp:RadioButton ID="RadioButton1" runat="server" GroupName="style" Checked="true"
                Text="日报" />
                <asp:RadioButton ID="RadioButton2" runat="server" GroupName="style" 
                Text="旬报" />
                <asp:RadioButton ID="RadioButton3" runat="server" GroupName="style" 
                Text="月报" />
                <asp:RadioButton ID="RadioButton4" runat="server" GroupName="style" 
                Text="年报" />
            
                <asp:Button ID="Button_Export" runat="server" Text="导出报表" CssClass="button" 
                    UseSubmitBehavior="False" />
         </asp:Panel>
    </form>
<script>
    var textboxs = document.getElementsByTagName("input");
    var i;
    for (i = 0; i < textboxs.length; i++) {
        if (textboxs[i].className == "textbox") {
            textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
            textboxs[i].onfocus = function(e) { this.select(); };
        }
        else if (textboxs[i].className == "pageturn") {
            textboxs[i].onfocus = function(e) { this.select(); };
        }

    }
    var rows = document.getElementsByTagName("tr");
    for (i = 0; i < rows.length; i++) {

        if (rows[i].className == "grid-row-normal") {
            rows[i].onmouseover = function() { this.className = "grid-row-bright"; };
            rows[i].onmouseout = function() { this.className = "grid-row-normal"; };
        }
    }
    var tds = document.getElementsByTagName("td");
    for (i = 0; i < tds.length; i++) {
        if (tds[i].className == "detailheader") {
            tds[i].innerHTML = tds[i].innerHTML.replace("*", "<span class=required>*</span>");
        }
    }
</script>
</body>
</html>
